package com.doubao.device.dto.request;

import lombok.Data;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

/**
 * 评分请求
 */
@Data
public class RatingRequest {
    
    /**
     * 智能体ID
     */
    @NotNull(message = "智能体ID不能为空")
    private Long deviceId;
    
    /**
     * 评分(1-5)
     */
    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分最小为1")
    @Max(value = 5, message = "评分最大为5")
    private Integer rating;
    
    /**
     * 评价内容
     */
    private String comment;
}